﻿@model DemoPlena.Dominio.Usuario

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm("Edit", "Usuario", FormMethod.Post))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Usuario</legend>

        @Html.HiddenFor(model => model.IdUsuario)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Senha)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Senha)
            @Html.ValidationMessageFor(model => model.Senha)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoUsuario)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TipoUsuario)
            @Html.ValidationMessageFor(model => model.TipoUsuario)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

@*<div>*@
@*    @Html.ActionLink("Back to List", "Index")*@
@*</div>*@
@**@
@*@section Scripts {*@
@*    @Scripts.Render("~/bundles/jqueryval")*@
@*}*@
